package com.shoppingCart.exception;

import com.shoppingCart.enums.ResultEnum;
import lombok.Getter;

/**
 * create By lihao
 */
@Getter
public class ParkingException extends RuntimeException {
    private Integer code;
    private String message;

    public ParkingException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public ParkingException(Integer code, String message) {
        super(message);
        this.code = code;
    }

}
